package SpringMvc快速入门.main.java.com.itheima.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class UserController {

    //设置访问路径
    @RequestMapping("/save")
    @ResponseBody
    public String save(){
        System.out.println("save.....");
        return ("{'username':'lingyi'}");

    }
}
